home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20021006-20030409 / 000074_fdc@columbia.edu_Tue Nov 12 13:25:00 EST 2002.msg < prev    next >
Text File  |  2020-01-01  |  3KB  |  55 lines

  1. Article: 13840 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
  3. From: fdc@columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: telnet and pseudo-terminals
  6. Date: 12 Nov 2002 13:24:43 -0500
  7. Organization: Columbia University
  8. Lines: 38
  9. Message-ID: <aqrh1b$lph$1@watsol.cc.columbia.edu>
  10. References: <e81154be.0211120928.281cafa6@posting.google.com> <aqrgnd$l1u$1@watsol.cc.columbia.edu>
  11. NNTP-Posting-Host: watsol.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1037125485 5849 128.59.39.139 (12 Nov 2002 18:24:45 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 12 Nov 2002 18:24:45 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13840
  16.  
  17. In article <aqrgnd$l1u$1@watsol.cc.columbia.edu>,
  18. Frank da Cruz <fdc@columbia.edu> wrote:
  19. : In article <e81154be.0211120928.281cafa6@posting.google.com>,
  20. : Ysidro Salinas <ysidros@advmail.com> wrote:
  21. : : Is it possible to use C-Kermit to provide "serial-like" input/output
  22. : : through a telnet connection to another communication program?  If so,
  23. : : how?  I've read about the pipe and pty features, the redirect feature,
  24. : : and I've also scowered the "Using C-Kermit" book, but I'm not quite
  25. : : sure if any of these do what I want.  I have an existing comm program
  26. : : that screen-scraps a remote system via a serial port, I'd like to
  27. : : extend it to do exactly the same over a telnet connection, but I'd
  28. : : really like to avoid writing code to perform the telnet protocol.  Can
  29. : : I use kermit to establish the telnet connection, feed input and output
  30. : : to my program, and handle all the telnet communication at the same
  31. : : time?
  32. : :
  33. : You could try the REDIRECT command:
  34. :   set host foo.bar.baz
  35. :   if fail ...
  36. :   redirect <name-and-args-of-your-screen-scraping-program>
  37. : If your communications program uses stdio for the user end, it should
  38. : work.
  39. :
  40. Never mind, as soon as I sent that off, I realized it was wrong.  What
  41. it would do would be to hook up the telnet host with the dialed-up host,
  42. not substitute the dialed-up host for the Telnet host.
  43.  
  44. : If not, you could always rewrite the whole thing as a Kermit
  45. : script, thus making it both transport- and platform-independent.
  46. This is probably your best bet.  Unless some kind of "shim" exists for
  47. your platform that looks like a serial port and/or modem to the software,
  48. but really is a Telnet client, like OS/2 VMODEM.  I'm not aware of such
  49. a thing for Unix, but you never know.
  50.  
  51. - Frank
  52.